import { array } from 'vue-types'

import type { ICreateDeptReq } from '@/apis'

import type DeptDialog from './DeptDialog'

export const deptDialogProps = () => ({
  statusOptions: array<OptionItem>().def([])
})

export const formData = (): ICreateDeptReq => ({
  parentId: '',
  deptName: '',
  orderNum: 0,
  leader: '',
  phone: '',
  email: '',
  status: '0'
})

export type IFormData = ICreateDeptReq
export type DeptDialogRef = InstanceType<typeof DeptDialog>
